<?php session_start(); ?>
<?php
	include('misc/class_config.php'); 
?>
<?php
	include_once('access_control/page_access.php');	

	setPreviousPage();
	declinePageIfNotLoggedIn();
	$currentUser = new user();
?>

<?php
	if($currentUser->logoutUser())
	{
		$_SESSION = array();
		header('Location: index.php');
	}
?>